<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/29
 * Time: 17:44
 */

namespace Admin\Model;


use Base\Model\BaseModel;
use Think\Page;

class MessagetypeModel extends BaseModel
{
    protected $_validate = array(
        array('name', 'require', '名称必须填写'),
        array('name', '', '名称已存在', 0, 'unique', 3),
        array('name','/^[\x7f-\xff]+$/', '名称不符合规则！',3),
    );
    protected $_auto = array(
        array('status', '1'),
    );
}